﻿using Abp.AutoMapper;
using Akso.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Akso.Invoices.Dto
{
    /// <summary>
    /// 新增、编辑页面显示数据时的Dto对象，可以被其它Dto使用。
    /// </summary>
    [AutoMap(typeof(Invoice))]
    public class InvoiceEditDto
    {
        public Guid? Id { get; set; }
        [Required]
        [MaxLength(Invoice.MaxCodeLength)]
        public string InvoiceStartCode { get; set; }
        [MaxLength(Invoice.MaxCodeLength)]
        public string InvoiceEndCode { get; set; }
        /// <summary>
        /// 张数
        /// </summary>
        public int InvoiceNumber { get; set; }
        /// <summary>
        /// 已使用数量
        /// </summary>
        public int IsUseNumber { get; set; }
        [MaxLength(Invoice.MaxRemarkLength)]
        public string Remark { get; set; }
    }
}
